package com.sxmmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxmmall.common.utils.PageUtils;
import com.sxmmall.product.entity.AttrEntity;
import com.sxmmall.product.vo.AttrGroupRelationVo;
import com.sxmmall.product.vo.AttrRespVo;
import com.sxmmall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author sxm
 * @email 1125400943@qq.com
 * @date 2021-07-06 21:31:04
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] groupRelationVos);

    PageUtils attrNoRelation(Map<String, Object> params, Long attrgroupId);

    /*
     * @Author sxm
     * @Description 在指定的属性中筛选出可检索的属性属性id
     * @Date 10:53 2021/10/8
     * @Param [attrIds]
     * @return [java.util.List<java.lang.Long>]
     **/
    List<Long> selectSearchAttrs(List<Long> attrIds);
}

